﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="tags.aspx.vb" Inherits="GamerZ.tags" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1">
    <ItemTemplate>
        
        <a href="tags.aspx?Tags=<%# Eval("TagName") %>"><%# Eval("TagName")%> </a> &nbsp; | &nbsp;
        
        </ItemTemplate>
    </asp:Repeater>

    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
        SelectCommand="SELECT [TagName] FROM [Tags]"></asp:SqlDataSource>


    <br />
    <hr />

    <asp:GridView Width="1000px" ID="GridView1" runat="server" AutoGenerateColumns="False" 
    DataKeyNames="Gamerz_ID" DataSourceID="SqlDataSource2" AllowSorting="True" 
    AllowPaging="True">
    <Columns>
        <asp:HyperLinkField DataNavigateUrlFields="Gamerz_ID" 
            DataNavigateUrlFormatString="Details.aspx?Game={0}" DataTextField="Gamerz_Name" 
            HeaderText="Game Name" SortExpression="Gamerz_ID" ></asp:HyperLinkField>
        <asp:BoundField DataField="User_ID" HeaderText="Added By" 
            SortExpression="User_ID" />
        <asp:BoundField DataField="Gamerz_Publisher" HeaderText="Publisher" 
            SortExpression="Gamerz_Publisher" />
        <asp:BoundField DataField="Gamerz_Graphics" HeaderText="Graphics" 
            SortExpression="Gamerz_Graphics" />
        <asp:BoundField DataField="Gamerz_date" HeaderText="Date" 
            SortExpression="Gamerz_date" />
        <asp:ImageField DataImageUrlField="GamerZ_Image" 
            DataImageUrlFormatString="/Images/{0}" HeaderText="Thumbnail" SortExpression="GamerZ_Image">
            <ControlStyle CssClass="Thumbnail" /><ControlStyle />
        </asp:ImageField>
    </Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource2" runat="server" 
    ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
    ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
    
        
        SelectCommand="SELECT [GamerZ_Type], [Gamerz_Name], [User_ID], [Gamerz_Publisher], [Gamerz_Image], [Gamerz_Overview], [Gamerz_Graphics], [TagName], [Gamers_Capture_Img], [Youtube], [Gamerz_date], [Gamerz_ID] FROM [GamerZTagsQ] WHERE ([TagName] = ?)">
    <SelectParameters>
        <asp:QueryStringParameter Name="TagName" QueryStringField="Tags" Type="String" />
    </SelectParameters>
</asp:SqlDataSource>
</asp:Content>
